all files / stepper/ stepButton.vue

88.89% Statements 8/9
100% Branches 4/4
50% Functions 1/2
75% Lines 3/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48                      1× 1×                                                                      
//
//
//
//
//
//
//
//
//
//
 
import abstractButton from '../internal/abstractButton'
import stepLabel from './stepLabel'
export default {
  name: 'mu-step-button',
  props: {
    active: {
      type: Boolean
    },
    completed: {
      type: Boolean
    },
    disabled: {
      type: Boolean
    },
    num: {
      type: [String, Number]
    },
    last: {
      type: Boolean
    },
    childrenInLabel: {
      type: Boolean,
      default: true
    }
  },
  methods: {
    handleClick (event) {
      this.$emit('click', event)
    }
  },
  components: {
    abstractButton,
    'step-label': stepLabel
  }
}